home *** CD-ROM | disk | FTP | other *** search
Makefile | 1994-02-12 | 1.5 KB | 77 lines |
- # Makefile for g++ library test files (32 bit int default)
-
- GXX= cgcc
- CC= cgcc
- AR= car
- AS= $(CC)
-
- # common subset of options; no int size or omit-frame-pointer:
- COMMONOPT = -O2 -fstrength-reduce # -m68020 -m68881
- COMMONFLAGS =
- COMMONDEFINES =
-
- COPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES) \
- -DNDEBUG $(XFLAGS)
-
- GXXOPTS= $(COMMONOPT) $(COMMONFLAGS) $(COMMONDEFINES) \
- $(XXFLAGS)
-
- # Base options CC; includes int size but not omit-frame-pointer
- CFFLAGS = $(COPTS)
- GXXFFLAGS = $(GXXOPTS)
-
- # normal CFLAGS including int size and omit-frame-pointer
- CFLAGS= $(CFFLAGS) -fomit-frame-pointer
- GXXFLAGS = $(GXXFFLAGS) -fomit-frame-pointer
-
- # cflags for stuff that needs to be compiled with 32 bit ints
- CLFLAGS= $(CFLAGS)
- GXXLFLAGS = $(GXXFLAGS)
-
- # flags to $(CC) when it runs the assembler only
- ASFLAGS= -c
-
- # pre-processor flags
- PPFLAGS= -P -DNDEBUG
-
- # ld flags
- LDFLAGS = -v -lpml -s -lg++
-
- TEST= hounddog.ttp putbackdog.ttp tFile.ttp tfformat.ttp tiformat.ttp \
- tiomanip.ttp tiomisc.ttp
-
- OBJS = $(TEST:.ttp=.o)
- # the stuff to make
- ALL= $(TEST)
-
- objects: $(OBJS)
- obj: $(OBJS)
-
- # g++ files should have extension .cc
- # generated test files will have .ttp extn
-
- .SUFFIXES: .ttp .cc
- .cc.o:
- $(GXX) $(GXXFLAGS) -c $<
-
- .o.ttp:
- $(GXX) -o $@ $< $(LDFLAGS)
-
- all: $(ALL)
-
-
- clean:
- rm -f *.o core
-
- realclean: clean
- rm -f $(ALL) core report
-
- hounddog.ttp : hounddog.o
- putbackdog.ttp : putbackdog.o
- tFile.ttp : tFile.o
- tfformat.ttp : tfformat.o
- tiformat.ttp : tiformat.o
- tiomanip.ttp : tiomanip.o
- tiomisc.ttp: tiomisc.o
-
-